package com.pay.service.impl;

import com.pay.entity.CashRule;
import com.pay.mapper.CashRuleMapper;
import com.pay.service.ICashRuleService;
import com.pay.utils.ResponseData;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Peng
 * @since 2018-12-15
 */
@Service
public class CashRuleServiceImpl extends ServiceImpl<CashRuleMapper, CashRule> implements ICashRuleService {

	@Override
	public ResponseData doCashRuleEdit(CashRule cashRule) {
		return super.updateById(cashRule) ? ResponseData.ok() : ResponseData.baseError("修改失败") ;
	}

}
